/**
 * Copyright (c) 2019, ShangHai YTO Co., Ltd.
 * All right reserved.
 *
 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF YTO
 * CO., LTD.  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED
 * TO THIRD PARTIES, COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 * WITHOUT THE PRIOR WRITTEN PERMISSION OF YTO
 * CO., LTD.
 */
package org.sc.xl.easyexcel;

import com.alibaba.excel.write.style.row.AbstractRowHeightStyleStrategy;
import org.apache.poi.ss.usermodel.Row;

/**
 * @description: TODO 请在此添加描述
 * @reason: TODO ADD REASON(可选)
 * @author FXL
 *
 * @date 2024/10/19 22:19 
 * @since JDK 1.8
 */
public class CustomCellHeightHandler extends AbstractRowHeightStyleStrategy {


    @Override
    protected void setHeadColumnHeight(Row row, int i) {
//        if (i == 68) {
//            row.setHeightInPoints((float) 23);
//        } else {
        row.setHeightInPoints((float) 21.5);
//        }


    }

    @Override
    protected void setContentColumnHeight(Row row, int i) {
//        if (i - 2 >= 66 && i - 2 <= 72) {
//            row.setHeightInPoints((float) 32.4);
//        } else if (i - 2 == 73) {
//            row.setHeightInPoints((float) 64.8);
//        } else if (i - 2 == 74) {
//            row.setHeightInPoints((float) (32.4) * 3);
//        } else {
//        if (67 == row.getCell(0).getRowIndex()) {
//            row.setHeightInPoints((float) 23);
//        } else {
//
//        }
        row.setHeightInPoints((float) 16.108);

//        }
    }


}
